package com.questionnaire.service.impl;


import com.questionnaire.dao.AnswerRepository;
import com.questionnaire.model.Answer;
import com.questionnaire.service.IAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AnswerServiceImpl implements IAnswerService {

    @Autowired
    private AnswerRepository answerRepository;


    @Override
    public List<Answer> findList() {
        return answerRepository.findAll();
    }
}
